<% form_tag :action => 'signup' do %>
	<%=  error_messages_for :user %>
	<p><label for="user_login">Login</label><br/>
	<%=  text_field :user, :login %></p>
	
	<p><label for="user_email">Email</label><br/>
	<%=  text_field :user, :email %></p>
	
	<p><label for="user_instructor_id">Instructor</label><br/>
	<%=  collection_select :user, :instructor_id, Instructor.find_not_deleted(:all, :order=>'nombre ASC'), 'id', 'nombre', :include_blank=>false,:prompt => 'Instructor...' %>
	</p>
	
	<p><label for="user_roles_role_id">Rol</label><br/>
	<select name="user[role_ids][]" multiple="multiple">
		<%= options_from_collection_for_select(Role.find(:all, :order=>'name ASC'), "id", "name") %>
	</select>
	</p>
	
	<p><label for="user_password">Password</label><br/>
	<%=  password_field :user, :password %></p>
	
	<p><label for="user_password_confirmation">Confirm Password</label><br/>
	<%=  password_field :user, :password_confirmation %></p>
	
	<p><%=  submit_tag 'Sign up' %></p>
<% end %>